package com.duniptech.engine.core.simulation;

import com.duniptech.engine.core.modeling.api.IAtomic;
import com.duniptech.engine.core.simulation.api.IRTSimulator;

public class RTSimulator extends Simulator implements IRTSimulator {
	
	protected long numIterations;
	protected Thread myThread;
	protected boolean paused;
	
	public RTSimulator(IAtomic model) {
		super(model);
		paused = true;
		myThread = new Thread(this);
	}
	
	public void run() {
		tN = System.currentTimeMillis()/1000 + model.ta();
		//long iteration = 0;
		while(true) {
			while(System.currentTimeMillis() < 1000*tN - 10) {
				
			}
		}
	}
}
